﻿using ERP.ERPSystem.WarehouseManagement.Dto;
using ERP.Team.ProductionSystem;
using ERP.Team.WarehouseManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.DataAnalysis
{
    /// <summary>
    /// 数据分析-库存数据-xzc
    /// </summary>
    public interface IInventoryDataServices:IApplicationService
    {
        /// <summary>
        /// 库存数据查询
        /// </summary>
        /// <param name="inventorydatadto"></param>
        /// <returns></returns>
        Task<List<GetInventoryDataDto>> GetInventoryData(InventoryDataDto inventorydatadto);
        /// <summary>
        /// 查询物料产品分类出局
        /// </summary>
        /// <returns></returns>
        Task<List<Inventory>> GetMaterialType();
        Task<List<InventoryChartDto>> GetInventoryChartDataAsync();
        Task<List<InventoryPieChartDto>> GetInventoryPieChartDataAsync();
        Task<InventoryStatisticsDto> GetInventoryStatisticsAsync();
    }

    public class InventoryChartDto
    {
        public string ProductName { get; set; }
        public int GalleryNumber { get; set; }
    }

    public class InventoryPieChartDto
    {
        public string ProductName { get; set; }
        public int GalleryNumber { get; set; }
        public decimal Percentage { get; set; }
    }

    public class InventoryStatisticsDto
    {
        public int TotalGalleryNumber { get; set; }
        public int ProductTypeCount { get; set; }
        public int WarehouseCount { get; set; }
    }
}
